.badge {
  border-radius: .1rem;
  font-size: .85em;
  padding: 0 .3em;
  font-weight: bold;
  display: inline-block;

  color: #ffa657;
  background-color: #ffa6571a;
}

.badge.object-type-struct,
.badge.object-type-interface,
.badge.object-type-class {
  color: #79c0ff;
  background-color: #79c0ff1a;
}
.badge.object-type-struct::after {
  content: 'struct';
}
.badge.object-type-interface::after {
  content: 'interface';
}
.badge.object-type-class::after {
  content: 'class';
}

.badge.package-core {
  color: #44A1A0;
  background-color: #2E2E3A;
}
.badge.package-core::after {
  content: 'core';
}

.badge.package-variant-dataquery {
  color: #8F6593;
  background-color: #2E2E3A;
}
.badge.package-variant-dataquery::after {
  content: 'query';
}

.badge.package-variant-panelcfg {
  color: #BC5D2E;
  background-color: #2E2E3A;
}
.badge.package-variant-panelcfg::after {
  content: 'panel';
}

.badge.object-type-enum {
  color: #d2a8ff;
  background-color: #d2a8ff1a;
}
.badge.object-type-enum::after {
  content: 'enum';
}

.badge.object-type-disjunction {
  color: #baff79;
  background-color: #baff791a;
}
.badge.object-type-disjunction::after {
  content: 'union';
}

.badge.object-type-alias {
  color: #dfbe50;
  background-color: #dfbe501a;
}
.badge.object-type-ref::after {
  content: 'alias';
}

.badge.object-type-map {
  color: #ffa8cc;
  background-color: #ffa8cc1a;
}
.badge.object-type-map::after {
  content: 'map';
}

.badge.object-type-array {
  color: #5e8bde;
  background-color: #272a35;
}
.badge.object-type-array::after {
  content: 'array';
}

.badge.object-type-scalar {
  color: #c973d9;
  background-color: #ffa8cc1a;
}
.badge.object-type-scalar::after {
  content: 'scalar';
}

.badge.builder {
  color: #ffa657;
  background-color: #ffa6571a;
}
.badge.builder::after {
  content: 'builder';
}

.badge.object-method {
  color: #d2a8ff;
  background-color: #d2a8ff1a;
}
.badge.object-method::after {
  content: 'method';
}

.badge.function {
  color: #d2a8ff;
  background-color: #d2a8ff1a;
}
.badge.function::after {
  content: 'function';
}

/* Content area */
/* Make it wider */
.md-grid {
  max-width: 75rem;
}

.md-main__inner {
  margin-top: 0.5rem;
}

/* Sidebar */
/* Make it wider */
.md-sidebar--primary {
  width: 16rem !important;
  left: -16rem !important;
}
@media screen and (max-width: 76.2344em) {
  [data-md-toggle="drawer"]:checked ~ .md-container .md-sidebar--primary {
    transform: translateX(16rem);
  }
}

/* TOC */
/* Make it wider */
.md-sidebar--secondary {
  width: 14rem !important;
}
/* Don't wrap TOC links with spaces */
.md-sidebar--secondary .md-nav__item { white-space: nowrap }
/* Scroll horizontal to make them accessible */
.md-sidebar--secondary .md-sidebar__scrollwrap { overflow-x: auto }

/* Code */
/* Make codeblocks stand out */
.md-typeset pre>code { border-left: 0.2rem solid var(--md-accent-fg-color) }

/* Parameters */
/* Format 'PARAMETERS' after highlight (div.highlight) */
/* Match first paragraph (p) but only if it is followed by an unsorted list (ul) */
article.md-content__inner.md-typeset div.highlight+p:has(+ul) {
  padding-left: 1em;
  margin-top: 0;
  margin-bottom: 0;
}
/* Match first unsorted list (ul) after paragraph (p) */
article.md-content__inner.md-typeset div.highlight+p+ul {
  padding-left: 1em;
  margin-top:0;
}
article.md-content__inner.md-typeset div.highlight+p+ul li {
  margin-top: 0;
  margin-bottom: 0;
}
